/*
 * @Author: hmhvictory 1400628624@qq.com
 * @Date: 2025-07-31 19:55:13
 * @LastEditors: hmhvictory 1400628624@qq.com
 * @LastEditTime: 2025-07-31 19:56:26
 * @FilePath: \Gitee实训笔记\day14\HomeWork\Student.java\
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
public class Student {
    private String name;
    private int age;
    private String gender;
    private String studentId;

    // 构造方法
    public Student(String name, int age, String gender, String studentId) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.studentId = studentId;
    }

    // 获取姓名的方法
    public String getName() {
        return name;
    }

    // 设置姓名的方法
    public void setName(String name) {
        this.name = name;
    }

    // 获取年龄的方法
    public int getAge() {
        return age;
    }

    // 设置年龄的方法
    public void setAge(int age) {
        this.age = age;
    }

    // 获取性别的方法
    public String getGender() {
        return gender;
    }

    // 设置性别的方法
    public void setGender(String gender) {
        this.gender = gender;
    }

    // 获取学号的方法
    public String getStudentId() {
        return studentId;
    }

    // 设置学号的方法
    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }
}